import http from "@/utils/http";

// 新增充值记录
export function add_recharge(params) {
  return http.post("/by-account-recharge", params);
}
// 查询对应历史数据账号
export function historyAccount(params) {
  return http.get("/by-account-recharge/historyAccount/" + params);
}

// 新增扣款记录
export function add_Deductions(params) {
  return http.post("/by-account-recharge/addDeductions", params);
}
// 查询列表
export function pageBatchManage(params) {
  return http.post("/by-account-recharge/pageBatchManage", params);
}
// 查询列表
export function recharge_info(params) {
  return http.get("/by-account-recharge/" + params);
}
// 确认结算
export function recharge_settlement(params) {
  return http.post("/by-account-recharge/settlement", params);
}
// 确认结算
// loadingSendBack
export function recharge_sendBack(params) {
  return http.get("/by-account-recharge/sendBack/" + params);
}

//转运结算

//入库结算
export function transfer_inSettlement(isOld, params) {
  return http.post("/by-transfer-apply/select/financeList/" + isOld, params);
}
//出库历史
export function transfer_outSettlement(params) {
  return http.post(
    "/by-transfer-warehousing-out-apply/select/finance/page/list",
    params
  );
}
//查气泡
export function transfer_InsearchTip(params) {
  return http.post("/by-transfer-apply/select/tips/financeList", params);
}
//查询客服组
export function team_searCh() {
  return http.get("/sys-team/csd");
}
//确认结算
export function transfer_sendBill(WarehousingApplyId, audit, revision, params) {
  return http.post(
    "/by-transfer-apply/updateWaitSendFba/audit/5/6/settlement/1/" +
    WarehousingApplyId +
    "/" +
    audit +
    "/" +
    revision,
    params
  );
}
//查财务总报表
export function finance_generalReport(params) {
  return http.post("/sys-finance-total-report-forms/pageFinance", params);
}
//导出财务总报表文档
export function excelFinance_total(params) {
  return http.blobJson("/sys-finance-total-report-forms/excel-finance-total", params);
}

//仓租费用-----------------------------------------------------------------------------

//代发仓租表格
export function issuing_selectWhBill(params) {
  return http.post("/by-issuing-wh-cost/selectWhBill", params);
}
//代发仓租明细
export function issuing_selectWhBillInfo(params) {
  return http.post("/by-issuing-wh-cost/selectWhBillInfo", params);
}
//代发仓租明细导出
export function issuing_selectWhBillExcel(params) {
  return http.blobJson("/by-issuing-wh-cost/excel-whbill-info", params);
}

//转运仓租表格
export function transfer_selectTransferBill(params) {
  return http.post("/by-transfer-warehousing-charge-history/selectTransferBill", params);
}
//转运仓租明细
export function transfer_selectTransferBillInfo(params) {
  return http.post("/by-transfer-warehousing-charge-history/selectTransferBillInfo", params);
}
//转运仓租明细导出
export function transfer_selectTransferBillExcel(params) {
  return http.blobJson("/by-transfer-warehousing-charge-history/excel-transfer-info", params);
}
//退件仓租仓租
export function return_selectWhCostBill(params) {
  return http.post("/by-retreat-wh-cost/selectWhCostBill", params);
}
//退件仓租仓租明细
export function return_selectWhCostBillInfo(params) {
  return http.post("/by-retreat-wh-cost/selectWhCostBillInfo", params);
}
//退件仓租仓租明细导出
export function return_selectWhCostBillInfoExcel(params) {
  return http.blobJson("by-retreat-wh-cost/selectWhCostBillInfoEx", params);
}

//运单核账------------------------------------------------------

//运单核账查询列表
export function WaybillCheck_pageWaybillMaster(params) {
  return http.post("/by-waybill-master/pageWaybillMaster", params);
}

//修改备注接口
export function WaybillCheck_pageWaybillMasterRemark(id, params) {
  return http.put("/by-waybill-master/pageWaybillMaster/" + id + '/' + params);
}
//查看详情
export function WaybillCheck_pageWaybillMasterRemarkInfo(current, size, params) {
  return http.get("/by-waybill-master/searchWaybillNuclear/" + current + '/' + size + '/' + params);
}
//获取详情页面信息
export function WaybillCheck_pageWaybillNuclearMaster(params) {
  return http.post("/by-waybill-nuclear/pageWaybillNuclearMaster", params);
}
//上传账单
export function WaybillCheck_pageWaybillUpLoad(billType, billCurrency, convertCurrency, convertRate, params) {
  return http.formData(`/by-waybill-nuclear/upLoad/?billType=${billType}&billCurrency=${billCurrency}&convertCurrency=${convertCurrency}&convertRate=${convertRate}`, params);
}
//查询明细
export function WaybillCheck_pageWaybillNuclearInfo(params) {
  return http.get("/by-waybill-nuclear-info/selectWaybillNuclearInfo/" + params);
}
//保存补收金额
export function WaybillCheck_updatePayAmountAndRemark(id, payAmount, payRemark) {
  return http.post(`/by-waybill-nuclear/updatePayAmountAndRemark/${id}/${payAmount}/${payRemark}`);
}
//导出结果
export function WaybillCheck_exportExcel(billNumber) {
  return http.blobJson(`/by-waybill-nuclear/exportExcel/${billNumber}`);
}
//下载源文件
export function WaybillCheck_downloadOldWaybillFile(billNumber) {
  return http.blobJson(`/by-waybill-nuclear/downloadOldWaybillFile/${billNumber}`);
}
//查询头部信息
export function WaybillCheck_selectMasterData(billNumber,billCurrency) {
  return http.get(`/by-waybill-nuclear/selectMasterData/${billNumber}/${billCurrency}`);
}